﻿<common:LayoutAwarePage
    x:Name="pageRoot"
    x:Class="DiscussionForumTemplate.BloggerPage"
    DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
    IsTabStop="false"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:DiscussionForumTemplate"
    xmlns:common="using:DiscussionForumTemplate.Common"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Page.Resources>

        <!-- TODO: Delete this line if the key AppName is declared in App.xaml -->
        <x:String x:Key="AppName">My Application</x:String>
    </Page.Resources>

    <!--
        This grid acts as a root panel for the page that defines two rows:
        * Row 0 contains the back button and page title
        * Row 1 contains the rest of the page layout
    -->
    <Grid>
        <Grid.Background>
            <ImageBrush ImageSource="Images/bg.jpg"/>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="140"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!-- Back button and page title -->
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Button x:Name="backButton" Click="GoBack" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
            <TextBlock x:Name="pageTitle" Grid.Column="1" Style="{StaticResource PageHeaderTextStyle}" Text="Forum 2" Foreground="#DE333333"/>
        </Grid>
        
        <ScrollViewer x:Name="MainScroll" HorizontalAlignment="Left" Margin="0" Grid.Row="1" VerticalAlignment="Top" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled">
            <Grid HorizontalAlignment="Left" Height="628" Margin="120,0,0,0" VerticalAlignment="Top" Width="1000">
                <Grid Height="270" Width="1000" HorizontalAlignment="Left" VerticalAlignment="Center">
                    <Grid Margin="0,18.5,326,164.5" Width="674" Height="87">
                    	<Image Margin="0" Source="Images/BlogURLor.png" Stretch="None" Width="669" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    	<TextBox HorizontalAlignment="Right" Margin="0" TextWrapping="Wrap" Text="type your URL here" VerticalAlignment="Top" Width="560" Background="#FFEBE9E8" BorderThickness="2" FontSize="24" MinHeight="0" MinWidth="0" Height="87" FontWeight="Light" Padding="10,24,10,5" Foreground="#FF333333" BorderBrush="#FFC3C3C3"/>
                    </Grid>
                    <!--<Grid Margin="0,119.5,0,63.5" HorizontalAlignment="Left" VerticalAlignment="Center" Width="322" Height="87">
                    	<Image Margin="0" Source="Images/UserNameor.png" Stretch="None" Width="316" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    	<TextBox HorizontalAlignment="Right" Margin="0" TextWrapping="Wrap" Text="type your user id here" VerticalAlignment="Top" Width="235" Background="#FFEBE9E8" BorderThickness="2" FontSize="19" MinHeight="0" MinWidth="0" Height="87" Foreground="#FF333333" FontWeight="Light" Padding="10,27,10,5" BorderBrush="#FFC3C3C3"/>
                    </Grid>-->
                    <!--<Grid Margin="350.5,117.5,327.5,65.5" HorizontalAlignment="Center" VerticalAlignment="Center" Width="322" Height="87">
                    	<Image Margin="0" Source="Images/PassWordor.png" Stretch="None" Width="316" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    	<TextBox HorizontalAlignment="Right" Margin="0" TextWrapping="Wrap" Text="type your password here" VerticalAlignment="Top" Width="235" Background="#FFEBE9E8" BorderThickness="2" FontSize="19" MinHeight="0" MinWidth="0" Height="87" Foreground="#FF333333" FontWeight="Light" Padding="10,27,10,5" BorderBrush="#FFC3C3C3"/>
                    </Grid>-->
                    <GridViewItem x:Name="clear_Copy" HorizontalAlignment="Right" Margin="0,13,38,0" VerticalAlignment="Top" Width="242" Height="87">
                    	<Image Margin="0" Source="Images/Clearor.png" Stretch="None" Width="242" Height="87" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                    </GridViewItem>
                    <GridViewItem x:Name="submit_Copy" HorizontalAlignment="Right" Margin="0,0,40,66" VerticalAlignment="Bottom" Tapped="submit_Tapped" Width="242" Height="87">
                    	<Image Margin="0" Source="Images/Submitor.png" Stretch="None" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                    </GridViewItem>
                </Grid>
                <TextBlock HorizontalAlignment="Left" Margin="0,30,0,0" TextWrapping="Wrap" Text="Your Sub Heading Here" VerticalAlignment="Top" FontFamily="Segoe UI" FontSize="40" FontWeight="SemiLight" Foreground="#FF333333"/>
            </Grid>
        </ScrollViewer>

        <Grid x:Name="gridSnap" Visibility="Collapsed" Grid.Row="1">
            <StackPanel Margin="15,0,20,20" Orientation="Vertical" d:LayoutOverrides="Height">

                <TextBlock Foreground="#000000" TextWrapping="Wrap" FontSize="26.667" Margin="0,200,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="SemiBold" >
                    <Run Text="Please switch to full screen to view the details."/>
                    <LineBreak/>
                    <Run/>
                    <LineBreak/>
                    <Run Text="" />
                    <LineBreak/>
                    <Run/>
                    <LineBreak/>
                    <LineBreak/>
                    <Run/>
                    <LineBreak/>
                </TextBlock>
            </StackPanel>
            <Image Margin="0,495,0,0" Source="Assets/Images/bg.jpg" Stretch="Fill"/>
        </Grid>

        <VisualStateManager.VisualStateGroups>
            <!-- Visual states reflect the application's view state -->
            <VisualStateGroup>
                <VisualState x:Name="FullScreenLandscape"/>
                <VisualState x:Name="Filled"/>

                <!-- The entire page respects the narrower 100-pixel margin convention for portrait -->
                <VisualState x:Name="FullScreenPortrait">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}"/>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>

                <!-- The back button and title have different styles when snapped -->
                <VisualState x:Name="Snapped">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}"/>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}"/>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="gridSnap" Storyboard.TargetProperty="Visibility">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                        </ObjectAnimationUsingKeyFrames>

                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MainScroll" Storyboard.TargetProperty="Visibility">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
    </Grid>
    
    <!--<Page.BottomAppBar>
        <AppBar Padding="10,0,10,0" Background="#000000">
            <Grid Height="88">
                <StackPanel Margin="0,0,30,0" Orientation="Horizontal" HorizontalAlignment="Right" Height="88" VerticalAlignment="Center">
                    <Button x:Name="Lable1" HorizontalAlignment="Left" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource AddAppBarButtonStyle}" VerticalAlignment="Top"/>
                    <Button x:Name="Lable2" HorizontalAlignment="Left" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource AddAppBarButtonStyle}" VerticalAlignment="Top"/>
                    <Button x:Name="Lable3" HorizontalAlignment="Left" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource AddAppBarButtonStyle}"/>
                </StackPanel>
            </Grid>
        </AppBar>
    </Page.BottomAppBar>-->
    
</common:LayoutAwarePage>
